package org.chuan.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.chuan.base.domain.BaseDomain;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@ExcelTarget("employee")
public class Employee extends BaseDomain {

    @TableId(value = "id",type = IdType.AUTO)
    @Excel(name = "id")
    private Long id;
    @Excel(name = "用户名")
    private String username;
    @Excel(name = "密码")
    private String password;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "头像")
    private String headImage;
    @Excel(name = "年龄")
    private Integer age;
    @Excel(name = "所属部门ID")
    private Integer department_id;
    @ExcelEntity
    private Department department;
}
